package com.angel.mapper;

import com.angel.bean.dto.BabyInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.angel.bean.BabyInfo;

@Mapper
public interface BabyInfoDao {

    int insert(@Param("babyInfo") BabyInfo babyInfo);

    int insertSelective(@Param("babyInfo") BabyInfo babyInfo);

    int insertList(@Param("babyInfos") List<BabyInfo> babyInfos);

    int update(@Param("babyInfo") BabyInfo babyInfo);

    List<BabyInfo> findAll(@Param("babyInfo") BabyInfo babyInfo);

    /**
     * 进行字段的模糊搜索
     * @param babyInfo
     * @return
     */
    List<BabyInfoDto> searchBabyInfo(@Param("babyInfo") BabyInfo babyInfo);

    int delete(@Param("babyInfo")BabyInfo babyInfo);

    List<BabyInfoDto> findAllAndUser(@Param("babyInfo")BabyInfo babyInfo);

}
